package com.jarvan.service;

import com.jarvan.model.Endorse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface EndorseService {
    Endorse save(Endorse endorse);
    Page<Endorse> findByStatus(Integer endorseStatus, Pageable pageable);
    Endorse findByEndorseId(Integer endorseId);
    Endorse findbyTicketId(String ticketId);
    List<Endorse> findByBuyerIdAndStatus(Integer buyerId, Integer endorseStatus);
    Endorse deleteEndorse(Integer endorseId);
}
